package com.fifth.commodity.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fifth.common.pojo.entity.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BrandMapper extends BaseMapper<Brand> {
    List<Brand> selectAll(Brand brand);

    /*根据条件分页查询所有品牌*/
    IPage<Brand> findBrandsWithCondiction(IPage<Brand> page,@Param("ew") QueryWrapper<Brand> queryWrapper);

    //Page<Brand> selectAll(Page<Brand> page, QueryWrapper<Brand> wrapper,@Param("brandname") String brandname);
}
